docs: verify and migrate documentation to wiki#114
Merged
Conversation
Verification found document is OUTDATED - based on legacy SQL migrations while TMI now uses GORM AutoMigrate with api/models/models.go as source. Key issues found and documented: - Migration paths incorrect (now in docs/reference/legacy-migrations/) - Schema management approach changed to GORM AutoMigrate - Several fields/tables missing (cwe_id, cvss, alias, user_preferences) - Make target names incorrect (reset-db-heroku not heroku-reset-db) - threat_type is now array, not TEXT Migrated useful design patterns to wiki Database-Schema-Reference.md: - UUID generation via GORM BeforeCreate - Provider-based identity scoping - Dual foreign key pattern for authorization - Threat modeling framework options - Asset type enumeration Original file moved to docs/migrated/ with verification summary. Wiki page now serves as authoritative reference. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Verified 66 markdown files against source code - Corrected numerous inaccuracies found during verification: - Updated outdated default values (quotas, rate limits) - Fixed wrong endpoints and provider IDs - Corrected migration system references (golang-migrate to GORM) - Fixed framework references (Echo to Gin) - Migrated all verified content to wiki repository - Moved original files to docs/migrated/ with verification summaries - Added NEEDS-REVIEW markers for items requiring manual review - Created verify-migrate-doc skill for future documentation verification Key corrections: - OAuth provider: idp=test -> idp=tmi - Default max_active_invocations: 1 -> 3 - Default max_requests_per_minute: 100 -> 1000 - Health endpoint: /version -> / (root) - Webhook endpoint: /webhooks -> /webhooks/subscriptions Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
verify-migrate-docskill for automated documentation verification and wiki migrationdocs/migrated/folderKey Corrections Made
idp=test→idp=tmimax_active_invocations: 1 → 3max_requests_per_minute: 100 → 1000/version→/(root)/webhooks→/webhooks/subscriptionsTest plan
/verify-migrate-doc <path>docs/migrated/🤖 Generated with Claude Code